<h2>Validation error codes</h2>
Validation error codes are divided into four groups.
<ul>
	<li>Correct value - 0</li>
	<li>Basic properties - numbers from 1-99</li>
	<li>Built in validators - numbers from 100-999</li>
	<li>Custom - numbers from 1000-99999</li>
</ul>

<h2>Basic properties (0-99)</h2>
<table cellspacing="2" cellpadding="4">
	<tr>
		<th>Erorr nr</th>
		<th>Description</th>
	</tr>
	<tr> 
		<td colspan="2"><b>Text</b> (DomArProperty_Text)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not string and not null</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 3 </td>
		<td> Value is null or empty string (Only returned if NOT NULL is set)</td>
	</tr>
	
	
	<tr>
		<td colspan="2"><b>Char</b> (DomArProperty_Char)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not string and not null</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 2 </td>
		<td> Value is not unique (Only returned if UNIQUE index is used)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 3 </td>
		<td> Value is null or empty string (Only returned if NOT NULL is set)</td>
	</tr>
	
	
		
	<tr>
		<td colspan="2"><b>Bool</b> (DomArProperty_Bool)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not bool and not null</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 3 </td>
		<td> Value is null (Only returned if NOT NULL is set)</td>
	</tr>
	
	
	<tr>
		<td colspan="2"><b>Int</b> (DomArProperty_Int)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not int and not null</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 2 </td>
		<td> Value is not unique (Only returned if UNIQUE index is used)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 3 </td>
		<td> Value is null (Only returned if NOT NULL is set)</td>
	</tr>
	
	
	<tr>
		<td colspan="2"><b>Float</b> (DomArProperty_Float)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not int, not float and not null</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 2 </td>
		<td> Value is not unique (Only returned if UNIQUE index is used)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 3 </td>
		<td> Value is null (Only returned if NOT NULL is set)</td>
	</tr>
	
		
	
	<tr>
		<td colspan="2"><b>Number</b> (DomArProperty_Number)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not int, not float and not null</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 2 </td>
		<td> Value is not unique (Only returned if UNIQUE index is used)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 3 </td>
		<td> Value is null (Only returned if NOT NULL is set)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 4 </td>
		<td> Value is not in allowed numbers/ranges. (Only returned if "IN" is set)</td>
	</tr>
	
	
	
	<tr>
		<td colspan="2"><b>Array</b> (DomArProperty_Array)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not array</td>
	</tr>

	
	
	<tr>
		<td colspan="2"><b>Email</b> (DomArProperty_Email)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not string</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 2 </td>
		<td> Value is not unique (Only returned if UNIQUE index is used)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 4 </td>
		<td> Email 1 ei not same as Email 2. "array($email1, $email2)", $email1 != $email2 </td>
	</tr>
	
	
	<tr>
		<td colspan="2"><b>Password</b> (DomArProperty_Password)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not string </td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 4 </td>
		<td> Two given passwords doesn't match. "array($email1, $email2)", $email1 != $email2 </td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 5 </td>
		<td> Password is too short</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 6 </td>
		<td> Password is weak</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 7 </td>
		<td> Given old password is not correct </td>
	</tr>
	
	<tr>
		<td colspan="2"><b>File</b> (DomArFile)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not DomArFile object</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 12 </td>
		<td> File type is not allowed </td>
	</tr>
	
	<tr>
		<td colspan="2"><b>Image</b> (DomArImage)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 1 </td>
		<td> Value is not DomArImage object</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 12 </td>
		<td> File type is not allowed </td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 51 </td>
		<td> Image resize failed </td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 52 </td>
		<td> Image cut failed </td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 53 </td>
		<td> Image watermark failed </td>
	</tr>
	
</table>


<h2>Built in validators (100-999)</h2>
<table cellspacing="2" cellpadding="4">
	<tr>
		<th>Erorr nr</th>
		<th>Description</th>
	</tr>
	<tr> 
		<td colspan="2"><b> >= </b> (DomArValidator_Ge)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 100 </td>
		<td> Value is not greater or equal </td>
	</tr>
	
	
	<tr> 
		<td colspan="2"><b> > </b> (DomArValidator_Gt)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 101 </td>
		<td> Value is not greater </td>
	</tr>
	
	
	<tr> 
		<td colspan="2"><b> <= </b> (DomArValidator_Le)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 102 </td>
		<td> Value is not lesser or equal </td>
	</tr>
	
	
	<tr> 
		<td colspan="2"><b> < </b> (DomArValidator_Lt)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 103 </td>
		<td> Value is not lesser </td>
	</tr>
	
	
	<tr> 
		<td colspan="2"><b> <> </b> (DomArValidator_Ne)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 104 </td>
		<td> Value is not equal </td>
	</tr>
	
	
	<tr> 
		<td colspan="2"><b> In </b> (DomArValidator_In)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 105 </td>
		<td> Value is not in allowed values
		</td>
	</tr>
	
	
	<tr> 
		<td colspan="2"><b> NotIn</b> (DomArValidator_NotIn)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 106 </td>
		<td> Value is in not allowed values </td>
	</tr>
	
	
	<tr> 
		<td colspan="2"><b> Length</b> (DomArValidator_Length)</td>
	</tr>
	<tr>
		<td style="padding-left:20px;"> 107 </td>
		<td> Value length is longer than allowed </td>
	</tr>
	
	
</table>